package cn.rumoss.basic.finallyt;

import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName FinallyTest5
 * @Description //TODO
 * @Author HeCG
 * @Date 19-5-19 下午2:05
 */
public class FinallyTest5 {

    public static void main(String[] args) {
        System.out.println(getMap().get("KEY").toString());
    }

    public static Map<String, String> getMap() {
        Map<String, String> map = new HashMap<String, String>();
        map.put("KEY", "INIT");

        try {
            map.put("KEY", "TRY");
            return map;
        }
        catch (Exception e) {
            map.put("KEY", "CATCH");
        }
        finally {
            map.put("KEY", "FINALLY");
            map = null;
        }

        return map;
    }

}
